function submitPay(url,name,price){
	document.getElementById("lockBodyDivId").style.display = ""; // 显示
	showCenterDiv("#registerDivId");
	document.getElementById("registerDivId").style.display = ""; // 显示
	document.getElementById("confirmProductName").innerHTML = name;
	document.getElementById("confirmProductPrice").innerHTML = "￥"+price+"元";
	window.open (url);
}

function showCenterDiv(obj)
{
    var h1 = document.body.clientHeight;
    var h2 = document.documentElement.clientHeight;
    var isXhtml = (h2<=h1&&h2!=0)?true:false;
    var body = isXhtml?document.documentElement:document.body;
   
    var wh={left:0,top:0};
    var vwh={w:0,h:0};
    vwh.w=$.browser.msie?parseInt(body.clientWidth):parseInt(window.innerWidth);
    vwh.h=$.browser.msie?parseInt(body.clientHeight):parseInt(window.innerHeight);
    wh.left=(vwh.w/2)-parseInt($(obj).css("width"))/2;
    wh.top=body.scrollTop+(vwh.h/2)-parseInt($(obj).css("height"))/2;
    $(obj).css("top",wh.top);
    $(obj).css("left",wh.left);
    //return wh;
}